<!-- 该页面为原为主页--告警消息提示页面，现已废弃，
新页面为：/ui/message/webAlarmMessageRecrive.xhtml
-->
<!DOCTYPE html [
    <!ENTITY nbsp "&#160;">
    <!ENTITY bull "&#8226;">
    <!ENTITY copy "&#169;">
]>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<style>
body {
font-family: \5B8B\4F53, Arial Narrow, arial, serif; background: #ffffff; font-size: 14px;
}

body,div,dl,dt,dd,ul,ol,li,pre,form,fieldset,input,textarea,blockquote,emBED {
padding: 0; margin: 0;
}
</style>
<h:head>
	<title>消息列表</title>
	<style type="text/css">
.ui-datatable {
margin-bottom: 25px
}

.ui-datatable .ui-datatable-footer {
text-align: right; background: none; background-color: none; background-image: none;
border-bottom: 0pt; border-left: 0pt; border-right: 0pt; margin-top: -28px;
}

.ui-paginator {
text-align: left; background: none; background-color: none; background-image: none;
border-bottom: 0pt; border-left: 0pt; border-right: 0pt;
}

.ui-datalist ul {
padding: 0 0 0 10px; margin: 5px 0;
}

.ui-datatable .ui-button-icon-only .ui-button-text {
padding: 0; line-height: 1.2;
}
</style>
</h:head>
<h:body>
	<h:form id="form">
		<p:toolbar id="lib_toolbar" style="margin-top:5px;margin-left:7px">
			<f:facet name="left">
				<h:outputText style="margin-left:10px" value="开始时间(起)&nbsp;" />
				<p:calendar value="#{lookAllMessageController.queryStartDate}" size="12" pattern="yyyy/MM/dd" />
				<h:outputText value="&nbsp;&nbsp;(止)&nbsp;" />
				<p:calendar value="#{lookAllMessageController.queryEndDate}" size="12" pattern="yyyy/MM/dd" />
				<h:outputText style="margin-left:10px" value="内容&nbsp;" />
				<p:inputText value="#{lookAllMessageController.content}" />
				<p:commandButton style="margin-left:20px" icon="ui-icon-search" update="record_list"
					actionListener="#{lookAllMessageController.query()}" value="查询" />

			</f:facet>
		</p:toolbar>
		<p:dataTable emptyMessage="无记录" style="margin-top:3px;margin-left:7px" var="record"
			widgetVar="record_list" id="record_list" rowKey="#{record.id}"
			value="#{lookAllMessageController.model}" paginator="true" rows="10" paginatorPosition="bottom"
			paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
			rowsPerPageTemplate="20,50,100" lazy="true">
			<p:column headerText="接收日期" width="20%">
				<h:outputText value="#{record.createTime.toString().substring(0,19)}" />
			</p:column>
			<p:column headerText="消息内容" width="50%">
				<h:outputText value="#{record.content}" />
			</p:column>
			<p:column headerText="发送者" width="20%">
				<h:outputText value="#{record.source}" />
			</p:column>
		</p:dataTable>
	</h:form>
</h:body>
</html>
